package com.dhcc.core.framework.security.client.hos;

import org.pac4j.oauth.client.OAuth20Client;

public class HosClient extends OAuth20Client<HosProfile> {

    public HosClient(final String key, final String secret) {
        setKey(key);
        setSecret(secret);
    }

    @Override
    protected void clientInit() {
        configuration.setApi(new HosApi(configuration.getKey(), configuration.getSecret()));
        configuration.setProfileDefinition(new HosProfileDefinition());
        super.clientInit();
    }

}
